package net.hn.hnms.biz.indicator.util;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * @author 智呈物联 nzw
 * @date 2022/8/24
 */
public class ConstantMap {

    public static final Map<String, String> PROVINCE_MAP = new LinkedHashMap<>();

    static {
        PROVINCE_MAP.put("13", "河北");
        PROVINCE_MAP.put("14", "山西");
        PROVINCE_MAP.put("15", "内蒙古");
        PROVINCE_MAP.put("21", "辽宁");
        PROVINCE_MAP.put("22", "吉林");
        PROVINCE_MAP.put("23", "黑龙江");
        PROVINCE_MAP.put("32", "江苏");
        PROVINCE_MAP.put("34", "安徽");
        PROVINCE_MAP.put("35", "福建");
        PROVINCE_MAP.put("36", "江西");
        PROVINCE_MAP.put("37", "山东");
        PROVINCE_MAP.put("41", "河南");
        PROVINCE_MAP.put("42", "湖北");
        PROVINCE_MAP.put("43", "湖南");
        PROVINCE_MAP.put("45", "广西");
        PROVINCE_MAP.put("50", "重庆");
        PROVINCE_MAP.put("51", "四川");
        PROVINCE_MAP.put("52", "贵州");
        PROVINCE_MAP.put("53", "云南");
        PROVINCE_MAP.put("61", "陕西");
        PROVINCE_MAP.put("62", "甘肃");
        PROVINCE_MAP.put("63", "青海");
        PROVINCE_MAP.put("64", "宁夏");
        PROVINCE_MAP.put("65", "新疆");
        PROVINCE_MAP.put("66", "新疆兵团");
    }

    public static final Map<String, String> SUPERVISOR_MAP = new LinkedHashMap<>();

    static {
        SUPERVISOR_MAP.put("130200130001", "冀东分局");
        SUPERVISOR_MAP.put("130400130001", "邯郸分局");
        SUPERVISOR_MAP.put("130500130001", "冀中分局");
        SUPERVISOR_MAP.put("130700130001", "张家口分局");
        SUPERVISOR_MAP.put("140100130001", "太原分局");
        SUPERVISOR_MAP.put("140200130001", "大同分局");
        SUPERVISOR_MAP.put("140200130603", "朔州监察站");
        SUPERVISOR_MAP.put("140300130001", "阳泉分局");
        SUPERVISOR_MAP.put("140400130001", "长治分局");
        SUPERVISOR_MAP.put("140500130001", "晋城分局");
        SUPERVISOR_MAP.put("140700131136", "晋中分局");
        SUPERVISOR_MAP.put("140900130001", "忻州监察站");
        SUPERVISOR_MAP.put("141000130001", "临汾分局");
        SUPERVISOR_MAP.put("141100130001", "吕梁分局");
        SUPERVISOR_MAP.put("150300130001", "乌海分局");
        SUPERVISOR_MAP.put("150400130001", "赤峰分局");
        SUPERVISOR_MAP.put("150600130001", "鄂尔多斯分局");
        SUPERVISOR_MAP.put("150700130001", "呼伦贝尔分局");
        SUPERVISOR_MAP.put("152500130650", "锡林郭勒监察站");
        SUPERVISOR_MAP.put("210100130001", "辽东分局");
        SUPERVISOR_MAP.put("210400130001", "辽北分局");
        SUPERVISOR_MAP.put("210700130001", "辽南分局");
        SUPERVISOR_MAP.put("210900130001", "辽西分局");
        SUPERVISOR_MAP.put("220200130001", "吉林煤监站");
        SUPERVISOR_MAP.put("220400130001", "辽源分局");
        SUPERVISOR_MAP.put("220600131807", "白山分局");
        SUPERVISOR_MAP.put("222400130746", "延边分局");
        SUPERVISOR_MAP.put("230100130001", "西部站");
        SUPERVISOR_MAP.put("230300130001", "哈南分局");
        SUPERVISOR_MAP.put("230400131353", "鹤滨分局");
        SUPERVISOR_MAP.put("230500130001", "哈东分局");
        SUPERVISOR_MAP.put("230900130001", "佳合分局");
        SUPERVISOR_MAP.put("320300130001", "徐州分局");
        SUPERVISOR_MAP.put("340100130761", "皖南分局");
        SUPERVISOR_MAP.put("340400130754", "淮南分局");
        SUPERVISOR_MAP.put("340600130741", "淮北分局");
        SUPERVISOR_MAP.put("350100131056", "福建能源集团");
        SUPERVISOR_MAP.put("350400131054", "三明煤管局");
        SUPERVISOR_MAP.put("350500131055", "泉州煤管办公室");
        SUPERVISOR_MAP.put("350800131053", "龙岩煤管局");
        SUPERVISOR_MAP.put("360200130001", "赣东北分局");
        SUPERVISOR_MAP.put("360300130001", "赣西南分局");
        SUPERVISOR_MAP.put("360500130001", "赣中分局");
        SUPERVISOR_MAP.put("370100131130", "鲁中分局");
        SUPERVISOR_MAP.put("370300131120", "鲁东分局");
        SUPERVISOR_MAP.put("370400131123", "鲁南分局");
        SUPERVISOR_MAP.put("370800131122", "鲁西分局");
        SUPERVISOR_MAP.put("410100130001", "郑州分局");
        SUPERVISOR_MAP.put("410300130001", "豫西分局");
        SUPERVISOR_MAP.put("410400130001", "豫南分局");
        SUPERVISOR_MAP.put("410600130001", "豫北分局");
        SUPERVISOR_MAP.put("411400130001", "豫东分局");
        SUPERVISOR_MAP.put("420000120001", "湖北煤监局");
        SUPERVISOR_MAP.put("430100130001", "湘潭分局");
        SUPERVISOR_MAP.put("430100130768", "衡阳分局");
        SUPERVISOR_MAP.put("430700130931", "常德分局");
        SUPERVISOR_MAP.put("431000130978", "郴州分局");
        SUPERVISOR_MAP.put("431300130001", "娄底分局");
        SUPERVISOR_MAP.put("450000120001", "广西煤监局");
        SUPERVISOR_MAP.put("500100131181", "渝中分局");
        SUPERVISOR_MAP.put("500100131182", "渝南分局");
        SUPERVISOR_MAP.put("500100131183", "渝东分局");
        SUPERVISOR_MAP.put("510100132421", "川西分局");
        SUPERVISOR_MAP.put("510400130001", "攀西分局");
        SUPERVISOR_MAP.put("510800130001", "川北分局");
        SUPERVISOR_MAP.put("511500130001", "川南分局");
        SUPERVISOR_MAP.put("511700130875", "川东分局");
        SUPERVISOR_MAP.put("520100130001", "林东分局");
        SUPERVISOR_MAP.put("520200130001", "水城分局");
        SUPERVISOR_MAP.put("520300130001", "遵义分局");
        SUPERVISOR_MAP.put("520500130001", "毕节分局");
        SUPERVISOR_MAP.put("522300130001", "盘江分局");
        SUPERVISOR_MAP.put("530300132622", "曲靖分局");
        SUPERVISOR_MAP.put("530600130971", "昭通分局");
        SUPERVISOR_MAP.put("532500130976", "红河分局");
        SUPERVISOR_MAP.put("532900130985", "大理分局");
        SUPERVISOR_MAP.put("610200130001", "铜川分局");
        SUPERVISOR_MAP.put("610400130001", "咸阳分局");
        SUPERVISOR_MAP.put("610500130001", "渭南分局");
        SUPERVISOR_MAP.put("610800130001", "榆林分局");
        SUPERVISOR_MAP.put("620100130001", "兰州分局");
        SUPERVISOR_MAP.put("620800130001", "陇东分局");
        SUPERVISOR_MAP.put("630000120001", "青海煤监局");
        SUPERVISOR_MAP.put("640100130001", "银南分局");
        SUPERVISOR_MAP.put("640200130001", "银北分局");
        SUPERVISOR_MAP.put("650100130001", "北疆分局");
        SUPERVISOR_MAP.put("652100130001", "东疆分局");
        SUPERVISOR_MAP.put("652800130001", "南疆分局");
        SUPERVISOR_MAP.put("660000120001", "新疆兵团煤监局");
    }

    public static final Map<String, String> FORMAL_MINING_STATUS_MAP = new LinkedHashMap<>();

    static {
        FORMAL_MINING_STATUS_MAP.put("01", "生产矿井");
        FORMAL_MINING_STATUS_MAP.put("0101", "正常生产矿井");
        FORMAL_MINING_STATUS_MAP.put("0102", "停产矿井");
        FORMAL_MINING_STATUS_MAP.put("010201", "停产整改矿井");
        FORMAL_MINING_STATUS_MAP.put("010202", "自行停产矿井");
        FORMAL_MINING_STATUS_MAP.put("010203", "长期停产矿井");
        FORMAL_MINING_STATUS_MAP.put("02", "建设矿井");
        FORMAL_MINING_STATUS_MAP.put("0201", "新建矿井");
        FORMAL_MINING_STATUS_MAP.put("020101", "拟建矿井");
        FORMAL_MINING_STATUS_MAP.put("020102", "正常建设矿井");
        FORMAL_MINING_STATUS_MAP.put("020103", "停建矿井");
        FORMAL_MINING_STATUS_MAP.put("02010301", "长期停建矿井");
        FORMAL_MINING_STATUS_MAP.put("02010302", "长期停建无法联系矿井");
        FORMAL_MINING_STATUS_MAP.put("0202", "改建矿井");
        FORMAL_MINING_STATUS_MAP.put("020201", "拟建矿井");
        FORMAL_MINING_STATUS_MAP.put("020202", "正常建设矿井");
        FORMAL_MINING_STATUS_MAP.put("020203", "停建矿井");
        FORMAL_MINING_STATUS_MAP.put("02020301", "长期停建矿井");
        FORMAL_MINING_STATUS_MAP.put("02020302", "长期停建无法联系矿井");
        FORMAL_MINING_STATUS_MAP.put("0203", "扩建矿井");
        FORMAL_MINING_STATUS_MAP.put("020301", "拟建矿井");
        FORMAL_MINING_STATUS_MAP.put("020302", "正常建设矿井");
        FORMAL_MINING_STATUS_MAP.put("020303", "停建矿井");
        FORMAL_MINING_STATUS_MAP.put("02030301", "长期停建矿井");
        FORMAL_MINING_STATUS_MAP.put("02030302", "长期停建无法联系矿井");
        FORMAL_MINING_STATUS_MAP.put("03", "关闭矿井");
        FORMAL_MINING_STATUS_MAP.put("0301", "已关闭矿井");
        FORMAL_MINING_STATUS_MAP.put("0302", "正在实施关闭矿井");
    }

    public static final Map<String, String> POINT_STATUS_MAP = new LinkedHashMap<>();
    static {
        POINT_STATUS_MAP.put("0", "正常");
        POINT_STATUS_MAP.put("1", "超限报警");
        POINT_STATUS_MAP.put("2", "断电报警");
        POINT_STATUS_MAP.put("4", "标校");
        POINT_STATUS_MAP.put("5", "标校报警");
        POINT_STATUS_MAP.put("8", "超量程");
        POINT_STATUS_MAP.put("16", "分站故障");
        POINT_STATUS_MAP.put("32", "不巡检");
        POINT_STATUS_MAP.put("64", "暂停");
        POINT_STATUS_MAP.put("128", "传感器故障");
    }

    public static final Map<String,String[]> DT_POINT_VALUE = new LinkedHashMap<>();
    static {
        DT_POINT_VALUE.put("4001", new String[]{"故障（0）","正常（1）"});
        DT_POINT_VALUE.put("4002", new String[]{"无电（0）","交流供电（1）","直流供电（2）"});
    }

    public static final Map<String,String> ALARM_TYPE = new LinkedHashMap<>();
    static {
        ALARM_TYPE.put("001", "超限报警");
        ALARM_TYPE.put("002", "断电报警(断电器记录)");
        ALARM_TYPE.put("003", "馈电异常");
        ALARM_TYPE.put("004", "传感器断线");
        ALARM_TYPE.put("005", "分站断电");
        ALARM_TYPE.put("006", "分站不通");
        ALARM_TYPE.put("007", "标校");
        ALARM_TYPE.put("008", "超量程");
        ALARM_TYPE.put("009", "超上限报警");
        ALARM_TYPE.put("010", "断下限报警");
        ALARM_TYPE.put("011", "开关量报警");
    }

    public static final Map<Integer, String> WARNING_TYPE = new LinkedHashMap<>();
    static {
        WARNING_TYPE.put(1, "水灾预警");
        WARNING_TYPE.put(2, "火灾预警");
        WARNING_TYPE.put(3, "粉尘预警");
        WARNING_TYPE.put(4, "顶板预警");
    }

    public static final Map<Integer, String> WARNING_LEVEL = new LinkedHashMap<>();
    static {
        WARNING_LEVEL.put(1, "红色预警");
        WARNING_LEVEL.put(2, "橙色预警");
        WARNING_LEVEL.put(3, "黄色预警");
        WARNING_LEVEL.put(4, "蓝色预警");
    }

    public static final Map<Integer, String> RISK_COLOR_LEVEL = new LinkedHashMap<>();
    static {
        RISK_COLOR_LEVEL.put(1, "红色风险");
        RISK_COLOR_LEVEL.put(2, "橙色风险");
        RISK_COLOR_LEVEL.put(3, "黄色风险");
        RISK_COLOR_LEVEL.put(4, "蓝色风险");
    }
    public static final Map<Integer, String> FIRE_ALARM_LEVEL = new LinkedHashMap<>();
    static {
        FIRE_ALARM_LEVEL.put(0, "无预警");
        FIRE_ALARM_LEVEL.put(1, "红色风险");
        FIRE_ALARM_LEVEL.put(2, "橙色风险");
        FIRE_ALARM_LEVEL.put(3, "黄色风险");
        FIRE_ALARM_LEVEL.put(4, "蓝色风险");
    }
    public static final Map<Integer, String> FIRE_ALARM_LEVEL_OUT0 = new LinkedHashMap<>();
    static {
        FIRE_ALARM_LEVEL_OUT0.put(0, "蓝色风险");
        FIRE_ALARM_LEVEL_OUT0.put(1, "红色风险");
        FIRE_ALARM_LEVEL_OUT0.put(2, "橙色风险");
        FIRE_ALARM_LEVEL_OUT0.put(3, "黄色风险");
        FIRE_ALARM_LEVEL_OUT0.put(4, "蓝色风险");
    }
    public static final Map<Integer, String> RISK_LEVEL = new LinkedHashMap<>();
    static {
        RISK_LEVEL.put(1, "极高");
        RISK_LEVEL.put(2, "高");
        RISK_LEVEL.put(3, "较高");
        RISK_LEVEL.put(4, "一般");
    }

    public static final Map<Integer, String> LOCATION_TYPE = new LinkedHashMap<>();
    static {
        LOCATION_TYPE.put(null, "");
        LOCATION_TYPE.put(0, "采空区");
        LOCATION_TYPE.put(1, "灌浆机房");
        LOCATION_TYPE.put(2, "制氮机房");
        // 中央变电站
        LOCATION_TYPE.put(3, "机电硐室");
        // 盘区变电站
        LOCATION_TYPE.put(4, "机电硐室");
        LOCATION_TYPE.put(5, "胶带运输");
        LOCATION_TYPE.put(6, "工业场地");
        LOCATION_TYPE.put(7, "风井场地");
        LOCATION_TYPE.put(8, "变电站");
    }

    public static final Map<String, String> WORK_TYPE = new LinkedHashMap<>();
    static {
        WORK_TYPE.put(null, "本地控制");
        WORK_TYPE.put("0", "本地控制");
        WORK_TYPE.put("1", "本地检修");
        WORK_TYPE.put("2", "本地自动");
        WORK_TYPE.put("3", "集控自动");
        WORK_TYPE.put("4", "集控点动");
        //WORK_TYPE.put("5", "远程控制");
        WORK_TYPE.put("10", "掘进钻锚开始");
        WORK_TYPE.put("11", "掘进钻锚进行中");
        WORK_TYPE.put("12", "掘进完成，正在钻锚");
        WORK_TYPE.put("13", "钻锚完成，正在掘进");
        WORK_TYPE.put("20", "移盾开始");
        WORK_TYPE.put("21", "移盾进行中");
    }
    public static final Map<String, String> CURRENT_WORK = new LinkedHashMap<>();
    static {
        CURRENT_WORK.put(null, "自动流程未启动");
        CURRENT_WORK.put("0", "自动流程未启动");
        CURRENT_WORK.put("201", "辅控设备启动中 ");
        CURRENT_WORK.put("202", "运输设备启动中");
        CURRENT_WORK.put("203", "盾护油泵启动中");
        CURRENT_WORK.put("300", "辅控、运输、泵站启动完成");
        CURRENT_WORK.put("401", "盾护油泵停止中");
        CURRENT_WORK.put("402", "运输设备停止中");
        CURRENT_WORK.put("403", "辅控设备停止中");
        CURRENT_WORK.put("501", "盾护油泵急停中");
        CURRENT_WORK.put("502", "运输设备急停中");
        CURRENT_WORK.put("503", "辅控设备急停中");
        CURRENT_WORK.put("900", "急停完成");
    }
}
